package com.ruoyi.project.module.tenant.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.web.domain.BaseEntity;
import java.util.Date;

/**
 * 部门表 sys_tenant
 * 
 * @author ruoyi
 * @date 2018-09-13
 */
public class Tenant extends BaseEntity
{
	private static final long serialVersionUID = 1L;
	
	/** 部门id */
	private Long tenantId;
	/** 父部门id */
	private Long parentId;
	/** 部门名称 */
	private String tenantName;
	/** 显示顺序 */
	private Long orderNum;
	/** 负责人 */
	private String leader;
	/** 联系电话 */
	private String phone;
	/** 邮箱 */
	private String email;
	/** 部门状态（0正常 1停用） */
	private String status;
	/** 创建者 */
	private String createBy;
	/** 创建时间 */
	private Date createTime;
	/** 更新者 */
	private String updateBy;
	/** 更新时间 */
	private Date updateTime;
	/**  */
	private String address;
	/**  */
	private String sPhone;
	/**  */
	private String leader2;
	/**  */
	private String phone2;
	/**  */
	private String email2;

	
	public Long getTenantId() {
		return tenantId;
	}

	public void setTenantId(Long tenantId) {
		this.tenantId = tenantId;
	}

	public Long getParentId() {
		return parentId;
	}

	public void setParentId(Long parentId) {
		this.parentId = parentId;
	}

	public String getsPhone() {
		return sPhone;
	}

	public void setsPhone(String sPhone) {
		this.sPhone = sPhone;
	}

	public void setOrderNum(Long orderNum) {
		this.orderNum = orderNum;
	}

	public void setTenantName(String tenantName) 
	{
		this.tenantName = tenantName;
	}

	public String getTenantName() 
	{
		return tenantName;
	}
	public void setLeader(String leader) 
	{
		this.leader = leader;
	}

	public String getLeader() 
	{
		return leader;
	}
	public void setPhone(String phone) 
	{
		this.phone = phone;
	}

	public String getPhone() 
	{
		return phone;
	}
	public void setEmail(String email) 
	{
		this.email = email;
	}

	public String getEmail() 
	{
		return email;
	}
	public void setStatus(String status) 
	{
		this.status = status;
	}

	public String getStatus() 
	{
		return status;
	}
	public void setCreateBy(String createBy) 
	{
		this.createBy = createBy;
	}

	public String getCreateBy() 
	{
		return createBy;
	}
	public void setCreateTime(Date createTime) 
	{
		this.createTime = createTime;
	}

	public Date getCreateTime() 
	{
		return createTime;
	}
	public void setUpdateBy(String updateBy) 
	{
		this.updateBy = updateBy;
	}

	public String getUpdateBy() 
	{
		return updateBy;
	}
	public void setUpdateTime(Date updateTime) 
	{
		this.updateTime = updateTime;
	}

	public Date getUpdateTime() 
	{
		return updateTime;
	}
	public void setAddress(String address) 
	{
		this.address = address;
	}

	public String getAddress() 
	{
		return address;
	}
	public void setSPhone(String sPhone) 
	{
		this.sPhone = sPhone;
	}

	public String getSPhone() 
	{
		return sPhone;
	}
	public void setLeader2(String leader2) 
	{
		this.leader2 = leader2;
	}

	public String getLeader2() 
	{
		return leader2;
	}
	public void setPhone2(String phone2) 
	{
		this.phone2 = phone2;
	}

	public String getPhone2() 
	{
		return phone2;
	}
	public void setEmail2(String email2) 
	{
		this.email2 = email2;
	}

	public String getEmail2() 
	{
		return email2;
	}
	
	

    public Long getOrderNum() {
		return orderNum;
	}

	public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("tenantId", getTenantId())
            .append("parentId", getParentId())
            .append("tenantName", getTenantName())
            .append("orderNum", getOrderNum())
            .append("leader", getLeader())
            .append("phone", getPhone())
            .append("email", getEmail())
            .append("status", getStatus())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("address", getAddress())
            .append("sPhone", getSPhone())
            .append("leader2", getLeader2())
            .append("phone2", getPhone2())
            .append("email2", getEmail2())
            .toString();
    }
}
